//
//  CNGasMoneyCaculator.h
//  CarNote
//
//  Created by linshili on 13-10-19.
//  Copyright (c) 2013年 linshili. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 * 加油输入中，输入里程、单价、总价中的任何两个值，都能获取到第三个值
 */
typedef enum GasMoneyCaculateFactor
{
    GasMoneyCaculateFactorGas = 1,
    GasMoneyCaculateFactorPrice,
    GasMoneyCaculateFactorMoney
}GasMoneyCaculateFactor;

@interface CNGasMoneyCaculator : NSObject

- (void)pushCaculateFactor:(GasMoneyCaculateFactor)factor value:(float)value;

- (GasMoneyCaculateFactor)resultType;
- (float)resultValue;

@end
